package com.lly.pro.common;

import java.io.Serializable;


/**
 * 响应数据，返回一个code和result
 * 前端获取到的数据格式如下：
 * {
 *     code:10000,
 *     result:T
 * }
 * @author Hommond
 * @date 2/22/2019
 */
public class ResponseJson implements Serializable {

    private static final long serialVersionUID = 6357360698906259793L;

    public ResponseJson() {
    }

    public ResponseJson(Integer code) {
        this.code = code;
    }

    private Object result;
    private Integer code;

    public Object getResult() {
        return result;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public <T> void setResult(T result) {
        this.result = result;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
